home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
flashpc.exe
/
GETVOL.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-03-25
|
380 b
|
27 lines
#include <fpclib.h>
#include <string.h>
#include <memory.h>
void GetVolumneId( char *label );
void GetVolumneId( label )
char *label;
{
TFindRec findrec;
memset( label, '\0', 14 );
DosFindFirst( "C:\\*.*", 8, &findrec );
strcpy( label, ( CHAR * ) findrec.Name );
}
void main( void )
{
char label[14];
GetVolumneId( label );
}